<br />
{if $smarty.session.email} {include file="my_event/guest.tpl"} {/if}

<h2>Submit your event</h2>

<br />
{if $errors2}
<fieldset
	style="color: #f00; font-weight: bold; border: 1px solid #f00; padding: 10px;">
<legend style="padding: 0 10px 0 10px;">Error</legend> {foreach
from=$errors2 item=error} &bull; {$error} <br />
{/foreach}</fieldset>
<br />
{/if}

<small>Fields marked with asterisks(<span style="color: #f00;">*</span>)
are required.</small>
<br />
<br />

<form method="post" action="" enctype="multipart/form-data"><input
	type="hidden" name="new_event" value="1" /> {if $standalone} <input
	type="hidden" name="standalone" value="1" /> {/if}

<table>
	<tr>
		<td width="100"><span style="color: #f00;">*</span>Event name:</td>
		<td style="padding: 5px;"><input type="text" name="name"
			value="{$smarty.post.name}" style="width: 320px;" /></td>
		<td style="color: #777;">The name of your event.</td>
	</tr>
	<tr>
		<td>Description:</td>
		<td style="padding: 5px;"><textarea name="description" rows="5"
			cols="10" style="width: 320px;">{$smarty.post.description}</textarea></td>
		<td style="color: #777;">Description of your event.</td>
	</tr>
	<tr>
		<td>Photo:</td>
		<td style="padding: 5px;">{if $smarty.session.picture} <img
			src="{$REAL_ROOT}uploads/{$smarty.session.picture}" width="100"
			height="80" /> <br />
		{/if} <input type="file" name="picture" size="37" /></td>
		<td style="color: #777;">Upload photo for this event.</td>
	</tr>
	<tr>
		<td>Video:</td>
		<td style="padding: 5px;"><input type="text" name="video"
			style="width: 320px;" /></td>
		<td style="color: #777;">Enter video URL for this event.</td>
	</tr>
	<tr>
		<td><span style="color: #f00;">*</span>Categories:</td>
		<td style="padding: 5px;"><select name="sports[]" size="4"
			multiple="multiple" style="width: 320px;">
			{html_options values=$pk_sport_ids output=$pk_sport_vals
			selected=$smarty.post.sports}
		</select></td>
		<td style="color: #777;">Select category(ies) that fit your event. {*
		or enter new category if not available.*}</td>
	</tr>
	<tr>
		<td colspan="3"><br />
		<h3>Contact Details</h3>
		</td>
	</tr>
	<tr>
		<td>Host:</td>
		<td style="padding: 5px;"><input type="text" name="host"
			value="{$smarty.post.host}" style="width: 320px;" /></td>
		<td style="color: #777;">Who hosts this event.</td>
	</tr>
	<tr>
		<td>Contact:</td>
		<td style="padding: 5px;"><input type="text" name="contact"
			value="{$smarty.post.contact}" style="width: 320px;" /></td>
		<td style="color: #777;">Contact Person.</td>
	</tr>
	<tr>
		<td>Email:</td>
		<td style="padding: 5px;"><input type="text" name="contact_email"
			value="{$smarty.post.contact_email}" style="width: 320px;" /></td>
		<td style="color: #777;">Contact Email.</td>
	</tr>
	<tr>
		<td>Location:</td>
		<td style="padding: 5px;"><input type="text" name="location"
			value="{$smarty.post.location}" style="width: 320px;" /></td>
		<td style="color: #777;">Location for this event.</td>
	</tr>
	<tr>
		<td>City:</td>
		<td style="padding: 5px;"><input type="text" name="city"
			value="{$smarty.post.city}" style="width: 320px;" /></td>
		<td style="color: #777;">City</td>
	</tr>
	<tr>
		<td>State:</td>
		<td style="padding: 5px;"><input type="text" name="state"
			value="{$smarty.post.state}" style="width: 320px;" /></td>
		<td style="color: #777;">State</td>
	</tr>
	<tr>
		<td>Country:</td>
		<td style="padding: 5px;"><input type="text" name="country"
			value="{$smarty.post.country}" style="width: 320px;" /></td>
		<td style="color: #777;">Country</td>
	</tr>
	<tr>
		<td>Website:</td>
		<td style="padding: 5px;"><input type="text" name="website"
			value="{$smarty.post.website|default:'http://'}"
			style="width: 320px;" /></td>
		<td style="color: #777;">Website for this event.</td>
	</tr>
	<tr>
		<td colspan="3"><br />
		<h3>Ranking Criteria</h3>
		</td>
	</tr>
	<tr>
		<td>Distance:</td>
		<td style="padding: 5px;"><input type="text" name="distance"
			value="{$smarty.post.distance}" style="width: 320px;" /></td>
		<td style="color: #777;">Length of the event in miles from start to
		finish.</td>
	</tr>
	<tr>
		<td>Time to complete:</td>
		<td style="padding: 5px;"><input type="text" name="time_to_complete"
			value="{$smarty.post.time_to_complete}" style="width: 320px;" /></td>
		<td style="color: #777;">Length in hours of the event from start to
		finish.</td>
	</tr>
	<tr>
		<td>Terrain:</td>
		<td style="padding: 5px;"><input type="text" name="terrain"
			value="{$smarty.post.terrain}" style="width: 320px;" /></td>
		<td style="color: #777;">Terrain has elevation</td>
	</tr>
	<tr>
		<td>Climate:</td>
		<td style="padding: 5px;"><input type="text" name="climate"
			value="{$smarty.post.climate}" style="width: 320px;" /></td>
		<td style="color: #777;">(local temperature, humidity, wind, etc)</td>
	</tr>
	<tr>
		<td>Factor:</td>
		<td style="padding: 5px;"><input type="text" name="factor"
			value="{$smarty.post.factor}" style="width: 320px;" /></td>
	</tr>
	<tr>
		<td>Support:</td>
		<td style="padding: 5px;"><input type="text" name="support"
			value="{$smarty.post.support}" style="width: 320px;" /></td>
		<td style="color: #777;">The amount of support for the event by
		volunteers and crew.</td>
	</tr>
	<tr>
		<td><span style="color: #f00;">*</span>Your email:</td>
		<td style="padding: 5px;"><input type="text" name="email"
			value="{$smarty.post.email|default:$smarty.session.email}"
			style="width: 320px;" /></td>
	</tr>
	<tr>
		<td><span style="color: #f00;">*</span>Security Code:</td>
		<td style="padding: 5px;"><img src="{$REAL_ROOT}captcha/" /><br />
		<input type="text" name="security_code" style="width: 200px;" /></td>
	</tr>
	<tr>
		<td></td>
		<td style="padding: 5px;"><br />
		<input type="submit" value="Submit" /></td>
	</tr>

</table>


</form>
